home *** CD-ROM | disk | FTP | other *** search
/ C/C++ Users Group Library 1996 July / C-C++ Users Group Library July 1996.iso / listings / v_09_08 / 9n08100a < prev    next >
Text File  |  1991-06-04  |  404b  |  13 lines

  1. void main(void)
  2.    {
  3.    char *test_str = "This is a test string for the parsing function.";       
  4.    char **ptrarray;       
  5.    char *string;       
  6.    int wordcnt,size;          
  7.    size = strlen(test_str);       
  8.    wordcnt=wordcount(test_str);       
  9.    allocate_space(wordcnt,&ptrarray,size,&string);       
  10.    strcpy(string,test_str);       
  11.    str_to_ptrarray(string,ptrarray);  
  12.    }
  13.